From a22a05d8c34e03e70d726638667467dcb85ef787 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 13 Apr 2024 02:22:46 -0700
Subject: feat(user): markdown biography

---
 src/routes/user/[user]/+page.svelte | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/routes/user/[user]/+page.svelte')

diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte
index 992af2ab..7cffd647 100644
--- a/src/routes/user/[user]/+page.svelte
+++ b/src/routes/user/[user]/+page.svelte
@@ -16,6 +16,8 @@
 	import proxy from '$lib/Utility/proxy';
 	import { parseScheduleHtml } from '$lib/Data/hololive';
 	import type { UserPreferences } from '$lib/Database/userPreferences.js';
+	import SvelteMarkdown from 'svelte-markdown';
+	import MarkdownLink from '$lib/MarkdownLink.svelte';
 
 	export let data;
 
@@ -123,7 +125,12 @@
 						</p>
 
 						{#if schedule && preferences && preferences.biography && preferences.biography.length > 0}
-							<p>{preferences.biography}</p>
+							<SvelteMarkdown
+								source={preferences.biography}
+								renderers={{
+									link: MarkdownLink
+								}}
+							/>
 						{/if}
 
 						{$locale({
-- 
cgit v1.2.3

